﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System;

namespace Agile.Models
{
    /// <summary>
    /// 模块元素表(需要权限控制的按钮)
    /// </summary>
    [Table("rbac_moduleelement")]
    [Description("模块元素表")]
    public partial class MenuElement : Entity, ISoftDelete
    {
        public MenuElement()
        {
            DomId = string.Empty;
            Name = string.Empty;
            Attr = string.Empty;
            Script = string.Empty;
            Icon = string.Empty;
            Class = string.Empty;
            Remark = string.Empty;
            MenuId = string.Empty;
            TypeName = string.Empty;
            TypeId = string.Empty;
        }
        /// <summary>
        /// 软删除
        /// </summary>
        [Description("软删除")]
        public virtual int IsDelete { get; set; }
        /// <summary>
        /// DOM ID
        /// </summary>
        [Description("DOM ID")]
        public string DomId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Description("名称")]
        public string Name { get; set; }
        /// <summary>
        /// 元素附加属性
        /// </summary>
        [Description("元素附加属性")]
        public string Attr { get; set; }
        /// <summary>
        /// 元素调用脚本
        /// </summary>
        [Description("元素调用脚本")]
        public string Script { get; set; }
        /// <summary>
        /// 元素图标
        /// </summary>
        [Description("元素图标")]
        public string Icon { get; set; }
        /// <summary>
        /// 元素样式
        /// </summary>
        [Description("元素样式")]
        public string Class { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Description("备注")]
        public string Remark { get; set; }
        /// <summary>
        /// 功能模块Id
        /// </summary>
        [Description("功能模块Id")]
        public string MenuId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [Description("分类名称")]
        public string TypeName { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        [Description("分类ID")]
        public string TypeId { get; set; }

    }
}